import Vue from 'vue'
import App from './App.vue'
import test from './components/test'
import router from './router/index'
router.beforeEach(function (to,from,next) {
  if (to.meta.requirelogin){
    next();
  }else {
    next("/")
  }
  
});

Vue.config.productionTip = false
Vue.component("t",test)
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
